home *** CD-ROM | disk | FTP | other *** search
- Q30411 Incorrect Error Message Generated with Syntax Error
- C Compiler
- 5.00 5.10
- MS-DOS
-
-
- Problem:
- The following example generates the "C2122: typedef specifies
- different structure" error message. This error is misleading because
- there is no typedef contained in the code.
- The compiler is not flagging the missing semicolon (;) after the
- structure declaration.
- The following is the sample code:
-
- #include <stdio.h>
-
- void main( void );
-
- struct abc
- {
- int data;
- struct abc *lc;
- struct abc *rc;
- } /* missing ; */
-
- void main()
- {
- printf("Hello world.\n");
- }
-
- Response:
- Microsoft confirmed this to be a problem in C Compiler Versions
- 5.00 and 5.10.
- Microsoft is researching this problem and will post new information
- as it becomes available.
-
-
-
- Keywords: buglist5.00 buglist5.10
- Updated 88/07/21 03:19
-